using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ShareTools.InfoPathFormsManager;
using ShareTools.SolutionManager;

namespace ShareTools.MainWin
{
    public partial class MainWin : Form
    {
        public MainWin()
        {
            InitializeComponent();
            this.IsMdiContainer = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void infoPathManagerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form1 frm = new Form1();
            frm.MdiParent = this;
            frm.Show();
        }

        private void solutionsManagerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShareTools.SolutionManager.SolutionManager solMgr = new ShareTools.SolutionManager.SolutionManager();
            solMgr.MdiParent = this;
            solMgr.Show();
        }

        private void contentTypeAssociatorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //InfoPathFormsWorkflowAssociator 
            ShareTools.WorkflowManager.ContentTypeBasedWorkflowManager ctWfMgr = new ShareTools.WorkflowManager.ContentTypeBasedWorkflowManager();
            ctWfMgr.MdiParent = this;
            ctWfMgr.Show();
        }

        private void listTypeAssociatorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShareTools.WorkflowManager.ListBasedWorkflowManager listWfMgr = new ShareTools.WorkflowManager.ListBasedWorkflowManager();
            listWfMgr.MdiParent = this;
            listWfMgr.Show();
        }

        private void listsManagerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShareTools.ListsManager.ListsManager listMgr = new ShareTools.ListsManager.ListsManager();
            listMgr.MdiParent = this;
            listMgr.Show();
        }

        private void sPGroupsManagerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShareTools.GroupsManager.GroupsManager grpMgr = new ShareTools.GroupsManager.GroupsManager();
            grpMgr.MdiParent = this;
            grpMgr.Show();
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            About abt = new About();            
            abt.ShowDialog();
        }

    }
}